package com.gwtapps.messenger.client;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.gwtapps.messenger.client.model.Contact;
import com.gwtapps.messenger.client.model.Message;

public interface MessengerServiceAsync 
{
	void signIn( String name, int gridx, int gridy, int direction, int charPosOnMapX,
			int charPosOnMapY, int healt, AsyncCallback<Object> callback );
	void signOut( AsyncCallback<Object> callback );
	void changeLocation(int newGridx,int newGridy, AsyncCallback<Object> callback );
	void hit(Contact to, AsyncCallback<Object> callback );
	void getEvents( AsyncCallback<?> callback );
	void sendMessage( Contact to, Message message, AsyncCallback<Object> callback );
	void hitOccurred(String hitman,String receiver, AsyncCallback<Object> callback );
}
